package com.stevin.tool;

import com.stevin.tool.inject.CodeInterceptor;

import java.lang.instrument.Instrumentation;

/**
 * @author mars
 * @date 2018/11/03
 */
public class Bootstrap {

    public static void premain(String agentArgs, Instrumentation instrumentation) {
        System.out.println("--------------- start premain  ---------------");
        instrumentation.addTransformer(new CodeInterceptor(agentArgs), true);
        System.out.println("--------------- end premain ---------------");
    }
}
